package com.qsxc.dao.mapper;

import com.qsxc.dao.entity.SmCheckcode;
import com.qsxc.system.config.mybatis.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author
 * @since 2022-02-18
 */
@Mapper
public interface SmCheckcodeMapper extends MyBaseMapper<SmCheckcode> {

    Integer queryTodayCountByPhoneNo(@Param("phoneNo") String phoneNo);

    Integer queryAllCountByPhoneNo(@Param("phoneNo") String phoneNo);

    SmCheckcode queryLastByUserId(@Param("userId") Long userId);

    List<SmCheckcode> getCheckcodeList(@Param("phone") String phone);

    SmCheckcode queryLastByPhoneNo(@Param("phoneNo") String phoneNo);
}
